package cn.chenxinjie.hrm.feign;

import cn.chenxinjie.hrm.doc.CourseDoc;
import cn.chenxinjie.hrm.query.CourseDocQuery;
import cn.chenxinjie.hrm.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient(value = "hrm-es",fallbackFactory = CourseDocFallback.class)
@RequestMapping("/courseDoc")
public interface CourseDocFeign {
    @PostMapping
    AjaxResult addCourseDoc(@RequestBody List<CourseDoc> list);
    @PostMapping("/remove")
    AjaxResult removeCourseDoc(@RequestBody List<Long> list);
    @PostMapping("/queryCourses")
    AjaxResult queryCourses(@RequestBody CourseDocQuery query);
}
